﻿//----------------------------------------------------

#region 命名空间

//    版权：
//    作者：
//建立时间：2012-09-11 00:00:33
//    描述：
//----------------------------------------------------
using System;
using System.Data;
using System.Text;
using System.Collections.Generic;
using System.Web.UI.WebControls;
using System.Web.UI;
using WinnerCMS.Data;
using WinnerCMS.Model;
using WinnerCMS.Common;

#endregion

namespace WinnerCMS.BLL
{
    /// <summary>
    /// 业务逻辑类 WinnerCMS_MemberScore 的摘要说明。
    /// </summary>
    public class MemberScoreManage : MarshalByRefObject
    {
        private static readonly MemberScoreDal Dal = new MemberScoreDal();

        #region 添加

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        public Result Add(UserScore model)
        {
            Result res = new Result();
            model.CheckInDate = DateTime.Now;

            Dal.Add(model);
            return res;
        }

        #endregion

        #region 加载数据

        /// <summary>
        /// 加载数据
        /// </summary>
        public UserScore GetMemberScoresInfo(int userId)
        {
            return Dal.GetMemberScoresInfo(userId);
        }

        #endregion

        #region 绑定数据

        /// <summary>
        /// 绑定分页数据
        /// </summary>
        /// <param name="pp"></param>
        /// <returns></returns>
        public IList<UserScore> BindList(PagingParam pp)
        {
            return Dal.BindList(pp);
        }

        #endregion
    }
}